setInterval(function() {

    var myDate = new Date;
    var year = myDate.getFullYear(); //获取当前年
    var mon = myDate.getMonth() + 1; //获取当前月
    var date = myDate.getDate(); //获取当前日
    var h = myDate.getHours();//获取当前小时数(0-23)
    var m = myDate.getMinutes();//获取当前分钟数(0-59)
    var s = myDate.getSeconds();//获取当前秒
    var week = myDate.getDay();
    var weeks = ["星期日", "星期一", "星期二", "星期三", "星期四", "星期五", "星期六"];
    if (mon >= 1 && mon <= 9) {
        mon = "0" + mon;
    }
    if (date >= 0 && date <= 9) {
        date = "0" + date;
    }
    if (h >= 0 && h <= 9) {
        h = "0" + h;
    }
    if (m >= 0 && m <= 9) {
        m = "0" + m;
    }
    if (s >= 0 && s <= 9) {
        s = "0" + s;
    }
    $("#dt").html(year + "年 " + mon + "月" + date + "日 " + weeks[week] + " " +h + ":" + m + ":" + s);
}, 1000)